import { get, post } from '../request'
import qs from "qs";

export function login(data) {
    let datainfo = qs.stringify(data)
  return post("/user/login", datainfo);
}

export function logout() {
  return post('/user/log_out')
}

export function register(data) {
    let datainfo = qs.stringify(data);
    return post("/user/register", datainfo);
}

export function get_rsa_key(data){
    return get('/user/get_rsa_key',data)
}

export function verify_account(data){
    return get('/user/verify_account',data)
}

export function verify_email(data){
    return get('/user/verify_email',data)
}

export function get_code(data){
    return get('/user/get_code',data)
}

export function update_userinfo(data){
    return post('/user/update_user_info',data)
}

export function get_userinfo(){
    return get('/user/get_user_info')
}

